// 定义与Java中BaseResponse<T>对应的前端数据结构
export interface BaseResponse {
  code: number
  message: string
}

// 单个用户对象的ts类型
export interface Tag {
  id: number
  name: string
  color: string
  author: string
  createTime: string
}

export interface TagAddRequest {
  name?: string
}

export interface TagQueryRequest {
  name?: string
}

export interface TagUpdateRequest {
  id: number
  name?: string
}
export interface PageTag extends BaseResponse {
  data: {
    current?: number
    pages?: number
    records?: Array<Tag>
    size?: number
    total?: number
  }
}

export interface DeleteRequest {
  id: number
}
